﻿using LJ.EventBus.FastDog.Data;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LJ.EventBus.FastDog;

/// <summary>
/// 消息监听执行器
/// </summary>
public interface IMessageListener
{
    /// <summary>
    /// 消息接收处理
    /// </summary>
    /// <param name="transportMessage"></param>
    /// <param name="cancellationToken"></param>
    /// <returns></returns>
    Task<MessageReceiveResult> OnReceiveAsync(Message message, CancellationToken cancellationToken);
}